package store.aixx.jwt.demo.security.handler;

import org.springframework.security.core.Authentication;
import org.springframework.security.core.userdetails.UserDetails;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author yukai
 * @since 2021年12月11日 2:05
 */
@FunctionalInterface
public interface TokenHandler {

    void generatorToken(HttpServletRequest req, HttpServletResponse response, Authentication authentication) throws IOException;

}
